/**
 * Created by Administrator on 2016/3/20.
 */
$(function () {
    $("ul.content").mouseleave(function(){
        $(".first p").next("ul").slideUp(100);
    });

    $(".first p").mouseover(function(){
        $(this).css({"borderColor":"#ffd556",color: "#ffd556"});
    }).mouseleave(function(){
        $(this).css({"borderColor":"#08A5E0",color: "white"});
    }).click(function () {
        $(".first p").css('color', "white");
        $(this).parent().siblings().children("ul").slideUp(100);
        $(this).css({color: "#ffd556"}).next("ul").slideDown(100);
    });

    $(".a li a").click(function(){
        $(".first p").css("background","#08A5E0");
        $(".a li a").css("color","white").parent().css("background","#0886B8");
        $(this).css("color","red").parent().css("background","#ffd556");
        $(this).parents(".first").children("p").css("background","orange");
        var src = $(this).next().val();
        $(".info").html("<iframe  scrolling='auto' src='" + src + "'></iframe>");
    });
});
